<div class="wrapper">

    <!-- Navbar -->
    <nav class="main-header navbar navbar-expand navbar-white navbar-light">
      <!-- Left navbar links -->
      <ul class="navbar-nav">
        <li class="nav-item">
          <a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
        </li>
        <li class="nav-item d-none d-sm-inline-block">
          <a href="__ROOT__" class="nav-link" title="网站首页">
            <i class="fas fa-home"></i>
          </a>
        </li>
      </ul>
  
      <!-- Right navbar links -->
      <ul class="navbar-nav ml-auto">
        <!-- Messages Dropdown Menu -->
        <li class="nav-item dropdown user-menu">
          <a class="nav-link" data-toggle="dropdown" href="{:url('admin/profile')}">
            <img src="{$avatar}" class="user-image elevation-2 ">
            {:lang('WELCOME_USER', [$user_name])}
          </a>
          <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
            <a href="{:url('admin/profile')}" class="dropdown-item">
              <!-- Message Start -->
              <div class="media">
                <img src="{$avatar}" alt="User Avatar" class="img-size-50 mr-3 img-rounded">
                <div class="media-body">
                  <h3 class="dropdown-item-title">
                    {$user_name}
                  </h3>
                  <p class="text-md mt-1">{$Think.lang.USER_SETTINGS}</p>
                </div>
              </div>
              <!-- Message End -->
            </a>
            <div class="dropdown-divider"></div>
            <a href="{:url('index/logout')}" class="dropdown-item dropdown-footer">{$Think.lang.LOG_OUT}</a>
          </div>
        </li>
      </ul>
    </nav>
    <!-- /.navbar -->